Repository navigation
refactor(ios): trim the alert path's forwarding and duplicate constructors - #4129
Conversation
…ctors Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Size Report
Startup median (7 runs, lower is better):
|
|
I found no problems in the code at 3cc11f8. The trimmed forwarding and merged constructors in the alert path read as equivalent to the old behavior. This comes from reading the diff and the head sources. I did not build the Swift runner or run simulator tests, so the 39/41 alert unit tests and the build-for-testing runs in the description are the author's numbers, and I have not checked them. No live CLI alert run was captured either. CI is still pending: one of the three Smoke Tests jobs is in progress, and it is most likely the Apple smoke job that exercises the runner this PR touches. Nothing is failing, and Lint/Typecheck, Integration, Coverage, Repo Guards and the other two Smoke Tests jobs pass. There are no conflicts. Please let that Apple smoke job finish green. |
Summary
A cleanup of the iOS
alertpath with no behavior change. 3 files, +21 / −69 (net −48).snapshot-alert.ts: each admission branch now calls its narrowed runtime operation directly. The four forwarding functions are removed. The four separately typed admission branches stay, so capability narrowing is unchanged.RunnerTests+Alert.swift: the tworunnerAlert(...)constructors are now one. It takes the resolved actions and an optional window.RunnerTests+Alert.swift: the enabled and hittable button reads use the existingsafelyhelper instead of a bespoke ObjC exception wrapper. Small scope expansion: the audit named only the enabled read; the hittable probe used the same wrapper. A caught exception is now also logged under its tag.RunnerTests+SystemModal.swift: removed the redundant action-type check. Its only caller queries descendants only byactionableTypes.Validation
At
3cc11f8a30:pnpm check:affected --run --head HEAD: all runnable checks passed (exactCommit=true).snapshot-alert.test.ts: 7/7 passed.build-for-testing: iOS and macOS, normal and unit-test variants, all succeeded.-only-testingfor every test inRunnerTests+Alert*,+SystemModalTests,+BlockingSystemModal*: 41 executed (the 42nd is tvOS/macOS-only), 1 skipped (capture-only), 39 passed. The 1 failure,testAlertActivationConfirmsBeforeDeadlineWithoutHandlingTheNotificationBanner("needs notification authorization"), fails the same way on an origin/main build on the same simulator, so it comes from the simulator's state.🤖 Generated with Claude Code